clear;
tic
for i=1:100
  n=1000;
  x=magic(n);
  y=fft(x);
end
toc

% The school PC run takes 10-11 seconds
% The linutla server takes 80 seconds

% Home desktop is using 32bit system. It can't handle magic(10000).
% updated algorighm, repeat 100 times
% home desktop: 6.5 seconds
% school desktop: 7.5 seconds
